package com.aididi.socket.controller;

/**
 * @Auther: zx.xu
 * @Description:
 */
public class A {
    public static void main(String[] args) {
        Thread t = new Thread() {
            @Override
            public void run() {
                pong();
            }
        };
        t.start();

        System.out.println("ping");
    }
    static void pong() {
        System.out.println("pong");
    }

}
